﻿using System;
using System.Globalization;
using System.Xml.Serialization;

namespace ICalendar.CalendarProperties
{
    /// <summary>
    /// This property provides a more complete description of the calendar component, than that provided by the "SUMMARY" property.
    /// </summary>
    [XmlRoot("comment")]
    [Serializable]
    public class Comment : TextBase
    {
        public Comment(string comment) : base(comment)
        {
        }

        public Comment(string comment, CultureInfo language, Uri alternateTextRepresentation)
            : base(comment, language, alternateTextRepresentation)
        {
        }

        public static implicit operator Comment(string text)
        {
            return new Comment(text);
        }
    }
}
